package cn.hnucm.orderservice.service;

import cn.hnucm.orderservice.entity.TbLog;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统日志 服务类
 * </p>
 *
 * @author chenjintao
 * @since 2021-12-06 ${time}
 */
@Service
public interface TbLogService extends IService<TbLog> {
    //添加一条Log记录
    Boolean addLog(TbLog tbLog);
    //通过Id删除一条Log记录
    Boolean deleteLogById(Integer logId);
    //查询所有的Log，按照page分页
    IPage<TbLog> seleteLogByPage(Integer pageSize, Integer currentPage);
    //查询一条Log
    TbLog selectLogById(Integer logId);
}
